<%@ page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="action" scope="request"
	class="swd.work.dataview_wizard_detail.Action" />
<jsp:useBean id="view" scope="request"
	class="swd.work.dataview_wizard_detail.View" />
<jsp:setProperty name="view" property="*" />
<%if (action.action(pageContext).equals("login")){return;} %>

<html>
<head>
<title><%=view.getPrgTitle()%></title>
<LINK HREF="/SWD/workflow.css" REL="STYLESHEET" TYPE="TEXT/CSS">
<script type="">
function cols_choose(){
  col_order=document.all.item('cols_list').selectedIndex;
  col_name=document.all.item('cols_list').options[col_order].text;
  col_type=document.all.item('fields_type').options[document.all.item('fields_type').selectedIndex].text;
  col_order++;
  myurl="dataview_wizard_fld_conf.jsp?prg_no="+document.all.item('prg_no').value+"&dataview_seqno="+document.all.item('dataview_seqno').value+"&field_name="+col_name+"&field_type="+col_type+"&field_order="+col_order;
  this.dv_conf.location=myurl;
}
</script>
</head>
<body bgcolor="#ffffff" onload="<%=view.getOnloadScript()%>">
<TABLE BORDER="0" HEIGHT="20" CELLPADDING="0" CELLSPACING="0">
	<TR>
		<TD BACKGROUND="/SWD/pug_images/title_bg.gif">
		<DIV ALIGN="LEFT"><IMG SRC="/SWD/pug_images/title01.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0" alt="" /><IMG
			SRC="/SWD/pug_images/glass.gif" WIDTH="12" HEIGHT="8" alt="" /></DIV>
		</TD>
		<TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE"
			BACKGROUND="/SWD/pug_images/title_bg.gif" CLASS="TITLE"><%=view.getPrgTitle()%></TD>
		<TD BACKGROUND="/SWD/pug_images/title_bg.gif">
		<DIV ALIGN="RIGHT"><IMG SRC="/SWD/pug_images/glass.gif"
			WIDTH="12" HEIGHT="8" alt="" /><IMG SRC="/SWD/pug_images/title02.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0" alt="" /></DIV>
		</TD>
	</TR>
</TABLE>
<br />
<form action="<%=request.getRequestURI()%>" method="POST">
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0">
	<TR>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnAddTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='add';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnSaveTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='save';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnQueryTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='query';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnModifyTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='modify';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnApproveTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='approve';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnRejectTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='reject';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnDraftTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='draft';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnCancelTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='cancel';document.forms[0].submit();" /></TD>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnExitTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='exit';document.forms[0].submit();" /></TD>
	</TR>
</TABLE>
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0">
	<TR>
		<TD WIDTH="69">
		<DIV ALIGN="LEFT"><IMG SRC="/SWD/pug_images/title02_bg1.gif"
			WIDTH="69" HEIGHT="11"></DIV>
		</TD>
		<TD VALIGN="MIDDLE" CLASS="TITLE"><%=view.getFrm1Name()%></TD>
		<TD WIDTH="69">
		<DIV ALIGN="RIGHT"><IMG SRC="/SWD/pug_images/title2_bg2.gif"
			WIDTH="69" HEIGHT="11"></DIV>
		</TD>
	</TR>
</TABLE>
<TABLE BORDER="0" WIDTH="540px" CELLSPACING="1" CELLPADDING="0">
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head">SQL Statement</TD>
		<TD WIDTH="0%" CLASS="td_content" colspan="3"><textarea
			name="sql_statement" cols="100" rows="5">
<%=view.getsql_statement()%>
</textarea></TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.getprg_noTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content" colspan="3"><INPUT TYPE="TEXT"
			NAME="prg_no" SIZE="30" MAXLENGTH="30"
			VALUE="<%=(view.getprg_no()!=null ? view.getprg_no() : "")%>"
			<%=view.getprg_no_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.getprg_no_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.getform_methodTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content" colspan="3"><SELECT
			name="form_method" class="select">
			<OPTION value="POST" selected>POST</option>
			<OPTION value="GET">GET</option>
		</SELECT></TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.getform_actionTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content" colspan="3"><TEXTAREA
			rows="05" cols="75" NAME="form_action"
			<%=view.getform_action_readonly() ? "readonly" : ""%>
			CLASS="textarea"><%=(view.getform_action()!=null ? view.getform_action() : "")%></TEXTAREA>
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_nameTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_name" SIZE="20"
			VALUE="<%=(view.gettable_name()!=null ? view.gettable_name() : "")%>"
			<%=view.gettable_name_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_name_readonly() ? "input_noborder" : "input")%>" />
		</TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_idTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_id" SIZE="20"
			VALUE="<%=(view.gettable_id()!=null ? view.gettable_id() : "")%>"
			<%=view.gettable_id_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_id_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_widthTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_width" SIZE="20"
			VALUE="<%=(view.gettable_width()!=null ? view.gettable_width() : "")%>"
			<%=view.gettable_width_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_width_readonly() ? "input_noborder" : "input")%>" />
		</TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_heightTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_height" SIZE="20"
			VALUE="<%=(view.gettable_height()!=null ? view.gettable_height() : "")%>"
			<%=view.gettable_height_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_height_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_alignTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_align" SIZE="20"
			VALUE="<%=(view.gettable_align()!=null ? view.gettable_align() : "")%>"
			<%=view.gettable_align_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_align_readonly() ? "input_noborder" : "input")%>" />
		</TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_borderTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_border" SIZE="20"
			VALUE="<%=(view.gettable_border()!=null ? view.gettable_border() : "")%>"
			<%=view.gettable_border_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_border_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_cellpaddingTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_cellpadding" SIZE="20"
			VALUE="<%=(view.gettable_cellpadding()!=null ? view.gettable_cellpadding() : "")%>"
			<%=view.gettable_cellpadding_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_cellpadding_readonly() ? "input_noborder" : "input")%>" />
		</TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettable_cellspacingTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="table_cellspacing" SIZE="20"
			VALUE="<%=(view.gettable_cellspacing()!=null ? view.gettable_cellspacing() : "")%>"
			<%=view.gettable_cellspacing_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettable_cellspacing_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettr_widthTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="tr_width" SIZE="20"
			VALUE="<%=(view.gettr_width()!=null ? view.gettr_width() : "")%>"
			<%=view.gettr_width_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettr_width_readonly() ? "input_noborder" : "input")%>" />
		</TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettr_heightTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="tr_height" SIZE="20"
			VALUE="<%=(view.gettr_height()!=null ? view.gettr_height() : "")%>"
			<%=view.gettr_height_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettr_height_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettr_alignTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="tr_align" SIZE="20"
			VALUE="<%=(view.gettr_align()!=null ? view.gettr_align() : "")%>"
			<%=view.gettr_align_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettr_align_readonly() ? "input_noborder" : "input")%>" />
		</TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.gettr_classTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><INPUT TYPE="TEXT"
			NAME="tr_class" SIZE="20"
			VALUE="<%=(view.gettr_class()!=null ? view.gettr_class() : "")%>"
			<%=view.gettr_class_readonly() ? "readonly" : ""%>
			CLASS="<%=(view.gettr_class_readonly() ? "input_noborder" : "input")%>" />
		</TD>
	</TR>
	<TR>
		<TD COLSPAN="4">
		<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0">
			<TR>
				<TD WIDTH="69">
				<DIV ALIGN="LEFT"><IMG SRC="/SWD/pug_images/title02_bg1.gif"
					WIDTH="69" HEIGHT="11"></DIV>
				</TD>
				<TD VALIGN="MIDDLE" CLASS="TITLE"><%=view.getFrm2Name()%></TD>
				<TD WIDTH="69">
				<DIV ALIGN="RIGHT"><IMG SRC="/SWD/pug_images/title2_bg2.gif"
					WIDTH="69" HEIGHT="11"></DIV>
				</TD>
			</TR>
		</TABLE>
		</TD>
	</TR>
	<TR>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.getfields_listTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><SELECT NAME="cols_list"
			SIZE="1" onchange="cols_choose()"
			onfocus="javascript:if(<%=view.getfields_list_readonly()%>==1){this.blur();}"
			CLASS="select">
			<%=view.getcols_option()%>
		</SELECT></TD>
		<TD nowrap WIDTH="0%" CLASS="td_head"><%=view.getfields_typeTitle()%></TD>
		<TD WIDTH="0%" CLASS="td_content"><SELECT NAME="fields_type"
			onchange="cols_choose()"
			onfocus="javascript:if(<%=view.getfields_type_readonly()%>==1){this.blur();}"
			CLASS="select">
			<OPTION VALUE="TEXT"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("TEXT") ? "selected" : ""));}%>>TEXT</OPTION>
			<OPTION VALUE="SELECT"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("SELECT") ? "selected" : ""));}%>>SELECT</OPTION>
			<OPTION VALUE="LINK"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("LINK") ? "selected" : ""));}%>>LINK</OPTION>
			<OPTION VALUE="BUTTON"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("BUTTON") ? "selected" : ""));}%>>BUTTON</OPTION>
			<OPTION VALUE="RADIO"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("RADIO") ? "selected" : ""));}%>>RADIO</OPTION>
			<OPTION VALUE="CHECKBOX"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("CHECKBOX") ? "selected" : ""));}%>>CHECKBOX</OPTION>
			<OPTION VALUE="IMG"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("IMG") ? "selected" : ""));}%>>IMG</OPTION>
			<OPTION VALUE="HIDDEN"
				<%if(view.getfields_type() !=null){out.print((view.getfields_type().equals("HIDDEN") ? "selected" : ""));}%>>HIDDEN</OPTION>
		</SELECT></TD>
	</TR>
</TABLE>
<INPUT TYPE="HIDDEN" NAME="prgAction" VALUE="<%=view.getPrgAction()%>" />
<INPUT TYPE="HIDDEN" NAME="prgStatus" VALUE="<%=view.getPrgStatus()%>" />
<INPUT TYPE="HIDDEN" NAME="flowAction" VALUE="<%=view.getFlowAction()%>" />
<INPUT TYPE="HIDDEN" NAME="flowStatus" VALUE="<%=view.getFlowStatus()%>" />
<INPUT TYPE="HIDDEN" NAME="flowNO" VALUE="<%=view.getFlowNO()%>" /> <INPUT
	TYPE="HIDDEN" NAME="dataview_seqno"
	VALUE="<%=view.getdataview_seqno()%>" /></form>
<iframe name="dv_conf" frameborder="0" width="700px" height="400px"
	src="/SWD/pages/work/dataview_wizard_fld_conf.jsp"></iframe>
<!--
<iframe name="dv_show" frameborder="0" width="700px" height="400px" src="/SWD/pages/work/dataview_wizard_fld_show.jsp"></iframe>
-->
</body>
</html>
